defmodule ResourceConfigure do

    def configure() do
        %{
            "RUN_MODE" => "DEBUG",
            #            :node => String.to_atom("private_lib_cluster@127.0.0.1" <> Pango.IpLib.get_local_ip()),
            :node => String.to_atom("private_lib_cluster@127.0.0.1"),
            :cookie => :'123456',
            :topologies => [
                cluster: [
                    strategy: Cluster.Strategy.Epmd,
                    config: [
                        # 配置要连接的节点
                        hosts: [:'private_db_app@192.168.31.179',]
                    ],
                    topologies: {:net_kernel, :connect_node, []},
                    disconnect: {:erlang, :disconnect_node, []},
                    list_nodes: {:erlang, :nodes, [:connected]},
                ]
            ],
        }
    end

end